package tv.huan.tencent.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import tv.huan.common.annotation.Excel;
import tv.huan.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 购买记录对象 card_buy_log
 * 
 * @author admin
 * @date 2020-12-23
 */
public class CardBuyLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Integer id;

    /** card_pool表主键 */
    @Excel(name = "card_pool表主键")
    private Integer cardId;

    /** 卡名称 */
    @Excel(name = "卡名称")
    private String cardName;

    /** 类型 */
    @Excel(name = "类型")
    private Integer cardType;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Integer buyCount;

    /** 预估余量 */
    @Excel(name = "预估余量")
    private Integer predictRemainder;

    /** 实际余量 */
    @Excel(name = "实际余量")
    private Integer actualRemainder;

    /** 入库时间 */
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date putstockTime;

    /** 批次有效期 */
    @Excel(name = "批次有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date batchValidityTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCardId(Integer cardId) 
    {
        this.cardId = cardId;
    }

    public Integer getCardId() 
    {
        return cardId;
    }
    public void setCardName(String cardName) 
    {
        this.cardName = cardName;
    }

    public String getCardName() 
    {
        return cardName;
    }
    public void setCardType(Integer cardType) 
    {
        this.cardType = cardType;
    }

    public Integer getCardType() 
    {
        return cardType;
    }
    public void setBuyCount(Integer buyCount) 
    {
        this.buyCount = buyCount;
    }

    public Integer getBuyCount() 
    {
        return buyCount;
    }
    public void setPredictRemainder(Integer predictRemainder) 
    {
        this.predictRemainder = predictRemainder;
    }

    public Integer getPredictRemainder() 
    {
        return predictRemainder;
    }
    public void setActualRemainder(Integer actualRemainder) 
    {
        this.actualRemainder = actualRemainder;
    }

    public Integer getActualRemainder() 
    {
        return actualRemainder;
    }
    public void setPutstockTime(Date putstockTime) 
    {
        this.putstockTime = putstockTime;
    }

    public Date getPutstockTime() 
    {
        return putstockTime;
    }
    public void setBatchValidityTime(Date batchValidityTime) 
    {
        this.batchValidityTime = batchValidityTime;
    }

    public Date getBatchValidityTime() 
    {
        return batchValidityTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardId", getCardId())
            .append("cardName", getCardName())
            .append("cardType", getCardType())
            .append("buyCount", getBuyCount())
            .append("predictRemainder", getPredictRemainder())
            .append("actualRemainder", getActualRemainder())
            .append("putstockTime", getPutstockTime())
            .append("batchValidityTime", getBatchValidityTime())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
